<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>hello_react</title>
</head>

<body>
  <div id="test"></div>
  <!-- react核心库 -->
  <script src="../js/react.development.js"></script>
  <!-- react扩展库支持react操作DOM -->
  <script src="../js/react-dom.development.js"></script>
  <script type="text/javascript">
    // 1.创建虚拟DOM
    let vDom = React.createElement('h1',{id:'title'},'hello,react-js')
    // 2.渲染虚拟DOM到页面
    ReactDOM.render(vDom, document.getElementById('test'))
  </script>
</body>

</html>